package com.along.game.model;

import java.math.BigDecimal;

/**
 * SmallStateinfoId entity. @author MyEclipse Persistence Tools
 */

public class SmallStateinfo implements java.io.Serializable {

	// Fields

	private Integer id;
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	private Integer deskId;
	private Integer bigpicId;
	private String smallpicIds;
	private String smallpicInfo;

	// Constructors

	/** default constructor */
	public SmallStateinfo() {
	}

	// Property accessors

	public Integer getDeskId() {
		return this.deskId;
	}

	public void setDeskId(Integer deskId) {
		this.deskId = deskId;
	}

	public Integer getBigpicId() {
		return this.bigpicId;
	}

	public void setBigpicId(Integer bigpicId) {
		this.bigpicId = bigpicId;
	}

	public String getSmallpicIds() {
		return this.smallpicIds;
	}

	public void setSmallpicIds(String smallpicIds) {
		this.smallpicIds = smallpicIds;
	}

	public String getSmallpicInfo() {
		return this.smallpicInfo;
	}

	public void setSmallpicInfo(String smallpicInfo) {
		this.smallpicInfo = smallpicInfo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SmallStateinfo))
			return false;
		SmallStateinfo castOther = (SmallStateinfo) other;

		return ((this.getDeskId() == castOther.getDeskId()) || (this
				.getDeskId() != null
				&& castOther.getDeskId() != null && this.getDeskId().equals(
				castOther.getDeskId())))
				&& ((this.getBigpicId() == castOther.getBigpicId()) || (this
						.getBigpicId() != null
						&& castOther.getBigpicId() != null && this
						.getBigpicId().equals(castOther.getBigpicId())))
				&& ((this.getSmallpicIds() == castOther.getSmallpicIds()) || (this
						.getSmallpicIds() != null
						&& castOther.getSmallpicIds() != null && this
						.getSmallpicIds().equals(castOther.getSmallpicIds())))
				&& ((this.getSmallpicInfo() == castOther.getSmallpicInfo()) || (this
						.getSmallpicInfo() != null
						&& castOther.getSmallpicInfo() != null && this
						.getSmallpicInfo().equals(castOther.getSmallpicInfo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getDeskId() == null ? 0 : this.getDeskId().hashCode());
		result = 37 * result
				+ (getBigpicId() == null ? 0 : this.getBigpicId().hashCode());
		result = 37
				* result
				+ (getSmallpicIds() == null ? 0 : this.getSmallpicIds()
						.hashCode());
		result = 37
				* result
				+ (getSmallpicInfo() == null ? 0 : this.getSmallpicInfo()
						.hashCode());
		return result;
	}

}